Result Directed Computing in a Functional Logic Language

نویسنده

  • Herbert Kuchen
چکیده

In a functional logic language, especially in a constraint functional logic language, often the topmost constructor is known which an expression should be evaluated to. E.g. in a guarded expression b ! e, b should only be evaluated to true. Evaluating b to false would only waste resources and risk to run into an innnite computation. Hence, some kind of result directed computation can be used to reduce the search space by cutting uninteresting computations. One possibility to achieve this result direction is to integrate it into the abstract machine which is the basis for the runtime system. Here, we show how to achieve result directed computation by means of a program transformation. A runtime system without special facilities for result directed computing can be used to run the transformed programs. Thus, runtime overhead for result directed computing is avoided.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Designing volleyball talent identification software based on fuzzy logic

Using appropriate devices and scientific methods by coaches and trainers can accelerate the process of sport talent identification and development, and could also provide condition in which capable athletes to be directed in to suitable sport according to their abilities and skills. Former researches in scope of sport talent identification usually have been done in order to determine or normali...

متن کامل

Quantum typing

The objective of this paper is to develop a functional programming language for quantum computers. We develop a lambda-calculus for the QRAM model, following the work of P. Selinger (2003) on quantum flow-charts. We define a call-by-value operational semantics, and we develop a type system using affine intuitionistic linear logic. The main result of this preprint is the subject-reduction of the...

متن کامل

A Near Optimal Approach in Choosing The Appropriate Physical Machines for Live Virtual Machines Migration in Cloud Computing

Migration of Virtual Machine (VM) is a critical challenge in cloud computing. The process to move VMs or applications from one Physical Machine (PM) to another is known as VM migration. In VM migration several issues should be considered. One of the major issues in VM migration problem is selecting an appropriate PM as a destination for a migrating VM. To face this issue, several approaches are...

متن کامل

Linear Temporal Type Theory for Event-based Reactive Programming

Inspired by the Curry-Howard correspondence between Functional Reactive Programming (FRP) and Linear-time Temporal Logic (LTL), this paper applies temporal types to describe a functional, event-driven language with an underlying event queue. The result is a compelling abstraction for linear computations with temporal types. We present a toy surface language for event-based GUIs and give some ex...

متن کامل

XPath Query Processing in a Functional-Logic Language

XPath is a well-known query language for finding and extracting information from XML documents. This paper shows how the characteristics of this domain-specific language fits very well into the functional-logic paradigm. The proposed framework allows the user to write XPath-like queries as first-class citizens of the functional-logic language T OY, using higher-order combinators for constructin...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1992